-- GENERATED SPELL FOR [Underfoot] --


function spell0_15071(pUnit, Event) --@Grow,n/a--
pUnit:FullCastSpellOnTarget(24244,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15071', 582, 1)
end

function Sorts_15071(pUnit, Event)
local choix_sorts_15071 = math.random(0, 0)
if choix_sorts_15071 == 0 then
pUnit:RegisterEvent('spell0_15071', 1, 1)
end
end

function mob15071_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15071', math.random(1500, 3000), 1)
end

function mob15071_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15071_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15071_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15071, 1, 'mob15071_Action')
RegisterUnitEvent(15071, 2, 'mob15071_Leave')
RegisterUnitEvent(15071, 3, 'mob15071_Kill')
RegisterUnitEvent(15071, 4, 'mob15071_Die')
